package com.ruoyi.project.kefu.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.kefu.mapper.AppKefuMapper;
import com.ruoyi.project.kefu.domain.AppKefu;
import com.ruoyi.project.kefu.service.IAppKefuService;

/**
 * 客服配置Service业务层处理
 * 
 * @author wyh
 * @date 2024-07-04
 */
@Service
public class AppKefuServiceImpl implements IAppKefuService 
{
    @Autowired
    private AppKefuMapper appKefuMapper;

    /**
     * 查询客服配置
     * 
     * @param id 客服配置主键
     * @return 客服配置
     */
    @Override
    public AppKefu selectAppKefuById(Long id)
    {
        return appKefuMapper.selectAppKefuById(id);
    }

    /**
     * 查询客服配置列表
     * 
     * @param appKefu 客服配置
     * @return 客服配置
     */
    @Override
    public List<AppKefu> selectAppKefuList(AppKefu appKefu)
    {
        return appKefuMapper.selectAppKefuList(appKefu);
    }

    /**
     * 新增客服配置
     * 
     * @param appKefu 客服配置
     * @return 结果
     */
    @Override
    public int insertAppKefu(AppKefu appKefu)
    {
        return appKefuMapper.insertAppKefu(appKefu);
    }

    /**
     * 修改客服配置
     * 
     * @param appKefu 客服配置
     * @return 结果
     */
    @Override
    public int updateAppKefu(AppKefu appKefu)
    {
        return appKefuMapper.updateAppKefu(appKefu);
    }

    /**
     * 批量删除客服配置
     * 
     * @param ids 需要删除的客服配置主键
     * @return 结果
     */
    @Override
    public int deleteAppKefuByIds(Long[] ids)
    {
        return appKefuMapper.deleteAppKefuByIds(ids);
    }

    /**
     * 删除客服配置信息
     * 
     * @param id 客服配置主键
     * @return 结果
     */
    @Override
    public int deleteAppKefuById(Long id)
    {
        return appKefuMapper.deleteAppKefuById(id);
    }
}
